package com.cheer.service;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cheer.entity.MallOrderFinishEntity;

import java.util.List;

/**
 * 订单自动完成
 *
 * @author cheer
 */
public interface MallOrderFinishService extends IService<MallOrderFinishEntity> {

    /**
     * 查询可以完成的订单
     */
    List<MallOrderFinishEntity> listToFinishOrder();

    /**
     * 更新自动收货时间
     */
    void updateFinishTimeByOrderId(Long orderId, DateTime finishTime);

    /**
     * 删除可以完成的订单
     */
    void deleteByOrderId(Long orderId);
}

